#include "NoHands.h"

NoHands g_pNoHands;

void NoHands::Init()
{
	Active = true;
	g_pHands = g_pInterfaces.g_pMaterialSystem->FindMaterial("models\\weapons\\v_models\\hands\\v_hands", "Model textures", true, NULL);
}

void NoHands::SetActive(bool bActive)
{
	Active = bActive;
}

void NoHands::Enable()
{
	Active = true;
}

void NoHands::Disable()
{
	Active = false;
}

void NoHands::Compute()
{
	if(Active)
	{
		g_pHands->SetMaterialVarFlag(MATERIAL_VAR_NO_DRAW, true);
	}
	else
	{
		g_pHands->SetMaterialVarFlag(MATERIAL_VAR_NO_DRAW, false);
	}
}